Skip to content

app-layer: remove ALPROTO_TEST and tests#12051

Merged
victorjulien merged 1 commit intoOISF:masterfrom
catenacyber:alproto_test_remove-v1
Nov 1, 2024
Merged

app-layer: remove ALPROTO_TEST and tests#12051
victorjulien merged 1 commit intoOISF:masterfrom
catenacyber:alproto_test_remove-v1

Conversation

@catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
No ticket, just some meaning-lost code removal

Describe changes:

  • remove ALPROTO_TEST and its unit tests

Following #11910 (comment)

These tests purpose seems to have been lost.
Registering a alproto with a parser function that always fails,
and just testing that AppLayerParserParse returned -1...
We would get the same result  without registering a parser function,
or using ALPROTO_FAILED as argument to AppLayerParserParse

The comment says "Test the deallocation of app layer parser memory
on occurrence of error in the parsing process."
but I do not see how this is tested.
@codecov
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.40%. Comparing base (3a7eef8) to head (292c218).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12051      +/-   ##
==========================================
- Coverage   83.42%   83.40%   -0.03%     
==========================================
  Files         910      910              
  Lines      257642   257555      -87     
==========================================
- Hits       214949   214817     -132     
- Misses      42693    42738      +45     
Flag Coverage Δ
fuzzcorpus 61.56% <ø> (-0.09%) ⬇️
livemode 19.41% <ø> (-0.01%) ⬇️
pcap 44.47% <ø> (-0.02%) ⬇️
suricata-verify 62.77% <ø> (+0.01%) ⬆️
unittests 59.36% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien added this to the 8.0 milestone Oct 29, 2024
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 23199

@victorjulien victorjulien merged commit 292c218 into OISF:master Nov 1, 2024
@victorjulien
Copy link
Member

Merged in #12074, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants